package cn.yunhe.dplayerdemo3.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * 收藏表
 *
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "tb_collect")
public class Collect implements Serializable {

    @TableId(value = "cid")
    private int cid;
    private Video video;
    private UserInfo userInfo;

    public Collect(Video video, UserInfo userInfo) {
        this.video = video;
        this.userInfo = userInfo;
    }

    public Collect(UserInfo userInfo) {
        this.userInfo = userInfo;
    }
}
